import service from "@/api/index.js";
import qs from "qs";

const commentApi = {
    insert(commentGuide){
        return service.post(`/comment`, commentGuide);
    },
    delete(id){
        return service.delete(`comment/${id}`);
    },
    update(comment){
        return service.put("/comment",comment)
    },
    selectByUser(){
        return service.get("/comment/user");
    },
    selectAll(id){
        const condition = {
          strategyId: id
        };
        return service.get("/comment");
    },
    selectById(id){
        return service.get(`/comment/${id}`)
    }
}

export default commentApi;